package edu.ptu.shortlink.project.dao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import edu.ptu.shortlink.project.common.database.BaseDO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * @BelongsProject: shortlink
 * @BelongsPackage: edu.ptu.shortlink.project.dao.entity
 * @Author: HYJ
 * @CreateTime: 2025-05-07  16:22
 * @Description: 短链接访问网络统计实体类
 * @Version: 1.0
 */
@Data
@TableName("t_link_network_stats")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class LinkNetworkStatsDO extends BaseDO implements Serializable {

    @Serial
    private static final long serialVersionUID = -5740077489977227133L;
    /**
     * ID
     */
    private Long id;

    /**
     * 完整短链接
     */
    private String fullShortUrl;


    /**
     * 日期
     */
    private Date date;

    /**
     * 访问量
     */
    private Integer cnt;

    /**
     * 网络
     */
    private String network;
}


